cmake_minimum_required(VERSION 3.22)
project(ziya_coroutine C)

set(CMAKE_C_STANDARD 99)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")

add_executable(ziya_coroutine main.c include/common.h include/core/cpu.h coroutine/core/cpu.c include/core/coroutine.h coroutine/core/start.c coroutine/core/coroutine.c include/core/sched.h coroutine/core/sched.c coroutine/print.c)
